package com.diligent.cloud.sfc.service;

import com.canny.commons.model.ListResult;
import com.canny.commons.model.ObjectResult;
import com.canny.commons.model.Result;
import org.springframework.http.ResponseEntity;

import java.security.Principal;

/**
 * CraftDataService interface
 *
 * @author xf107278
 * @date 3/28/2020
 */
public interface CraftDataService {

    ResponseEntity<Result> getElineRuntimeParams(String machCode, String deviceType) throws Exception;

    ResponseEntity<ListResult> getElineEventTable(String machCode, String timeEnd, String duration) throws Exception;


    ResponseEntity<ObjectResult> getCraftDataResource( String machCode,  Principal principal);

    ResponseEntity<ObjectResult<String>> getItemIdByMatCode(String matCode);



    ObjectResult setMouldId(String matCode,String woOrder);
}
